﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using W.Device.Domain;
using W.Device.Repository.Interface;

namespace W.Device.Repository.Impl
{
    public class DeviceRepository : BaseRepositoy<DevicesInfo>, IDeviceRepository
    {
        public DeviceRepository(EFDeviceDbContext db) : base(db)
        {
        }
        public async Task<int> AddAsync(DevicesInfo devices)
        {
           return await base.AddAsync(devices);
        }

        public async Task<List<DevicesInfo>> GetAllAsaync()
        {
            return await base.GetAllAsaync();
        }

        public async Task<List<DevicesInfo>> GetAsync(Expression<Func<DevicesInfo, bool>> expre)
        {
            return await base.GetAsync(expre);
        }

        public async Task<int> Update(DevicesInfo devices)
        {
            return await base.Update(devices);
        }
        public async Task<int> UpdateAll(List<DevicesInfo> devices)
        {
            return await base.UpdateAll(devices);
        }
    }
}
